package cn.k.service;

import cn.k.domain.Notice;
import cn.k.qo.NoticeQueryObject;
import cn.k.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface INoticeService {
    void insert(Notice notice);

    void delete(Long id);

    void update(Notice notice);

    Notice get(Long id);

    List<Notice> selectAll();

    List<Notice> selectForList(NoticeQueryObject qo,  int releaseStatus);

    PageInfo<Notice> query(NoticeQueryObject qo);

    //更新发布状态
    void updateReleaseStatus(Long id, int releaseStatus);

    Notice queryByReadRelation(Long id, Long employeeId);

    void updateReadRelation(Long id, Long employeeId, int status);


}
